export default {
    name: 'Index',
    data () {
      return {
        msg: 'Welcome',
      }
    },
    created(){
      if(this.$store.state.username==null){
        this.$router.push({ path: '/login' })
      }
    },
    methods:{
      bind(a){
        console.log(a);
      }
    }
  }